<div class="posts form">
	<?php echo $form->create('Task',array('action'=>'addItem'));?>
    <div id="main" class="clearfix">
        <div id="container" class="clearfix" style="background:#fff;">
            <div id="frame">
                <div class="leftCols">
                    <div class="title">
                        <?php __('Add new item for task');?>
                    </div>
                    <div class="field">
                        <div style="float:left; padding-right:30px;">
                            Task Name: <?php echo $selectedTask['Task']['taskName'];?>
                            <?php echo $form->hidden('Task.id',array('value'=>$selectedTask['Task']['id'])) ?>
                            <br/>
                        </div>
                    </div>
                    <?php echo $form->input('TaskItem.name',array('div'=>array('class' => 'field'),'label'=>'Item Name <span class="required">*</span>','style'=>'width:350px;'));?>
                    <div class="field">
                        Description:
                        <br/>
                        <textarea style="width:350px; height: 150px;" name="data[TaskItem][description]"></textarea>
                    </div>
                </div>
                <div class="rightCols">
                	<div class="field">
                		<label for="TaskItemType">Item Type <span class="required">*</span></label>
	                    <?php echo $form->select('TaskItem.type_items_id', $itemTypes, 1, array('empty'=>false, 'div'=>false,'style'=>'width:350px; height:20px;'), true); ?>
	                  </div>
                    <?php echo $form->input('TaskItem.estimatedHour',array('div'=>array('class' => 'field'),'label'=>'Estimated Hours <span class="required">*</span>','style'=>'width:350px;'));?>
                    <?php echo $form->input('TaskItem.realHour',array('div'=>array('class' => 'field'),'label'=>'Real Hours <span class="required">*</span>','style'=>'width:350px;'));?>
                </div>
                <div class="saveDIV">
                    <input type="submit" value="Save" class="submit" />
                </div>
            </div>
        </div>
        <?php echo $form->end();?>
    </div>
</div>
